package cn.longge.controller;

import cn.longge.entity.Result;
import cn.longge.service.IDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("manager/detail")
public class DetailController {
    @Autowired
    private IDetailService detailService;

    @RequestMapping("selectDetail/{woId}")
    public Result selectDetail(@PathVariable int woId){
        Map<String,Object> detail = detailService.selectDetail(woId);
        Result result = new Result();
        result.setObj(detail);
        return result;
    }
}
